FROM public.ecr.aws/lambda/python:3.12-arm64

# Install dependencies first for better layer caching
COPY requirements.txt ${LAMBDA_TASK_ROOT}/
RUN pip install --no-cache-dir -r requirements.txt

# Copy function code
COPY src/ ${LAMBDA_TASK_ROOT}/

# Set the handler
CMD [ "handler.handler" ]
